/*
 * ActionHandleException.java
 * 
 * @version 1.0, March 6, 2011
 * CS 2340 Team 10: Cyberdyne Systems
 */
package edu.gatech.oad.cyberdoc.domain.action;

/**
 * This exception is thrown if a problem occurs that prevents an action from
 * being handled.
 * 
 * @author John Girata
 * @version 1.0, March 6, 2011
 */
@SuppressWarnings("serial")
public class ActionHandleException extends Exception {

	/**
	 * Creates a new ActionHandleException with the given message.
	 * 
	 * @param message
	 *            A description of this exception
	 */
	public ActionHandleException(String message) {
		super(message);
	}

	/**
	 * Creates a new ActionHandleException with the given source.
	 * 
	 * @param e
	 *            The exception that caused this exception
	 */
	public ActionHandleException(Exception e) {
		super(e);
	}

	/**
	 * Returns a string representation of this exception to be passed back to
	 * the front-end.
	 * 
	 * @return A string representation of this exception
	 */
	@Override
	public String toString() {
		return getMessage();
	}
}
